﻿using System;
using NUnit.Framework;

namespace PropertyExpression.RelationalDataInstance.Test
{
    //QDO: почистить проект
    [TestFixture]
    public class MainTest 
    {
        [Test]
        public void Test()
        {
            foreach (var salesOrderHeader
                in SelectExecutor.Execute<ISalesOrderHeader>(
                    parameterAdder => "SELECT * FROM Sales.SalesOrderHeader",
                    salesOrderHeader => salesOrderHeader.SalesOrderDetails()
                    )
                )
            {
                Console.WriteLine(salesOrderHeader);
            }
        }

    }
}
